home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch07 / 07fig13.wrl < prev   
Text File  |  1996-09-23  |  808b  |  46 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ground
  8.         Shape {
  9.             appearance DEF White Appearance {
  10.                 material Material { }
  11.             }
  12.             geometry Box {
  13.                 size 12.0 0.1 12.0
  14.             }
  15.         },
  16.     # Tree
  17.         Transform {
  18.             translation 0.0 1.0 0.0
  19.             scale       1.0 2.0 1.0
  20.             scaleOrientation 0.0 0.0 1.0 -0.785
  21.             center      0.0 -1.0 0.0
  22.             children [
  23.             # Trunk
  24.                 Shape {
  25.                     appearance USE White
  26.                     geometry Cylinder {
  27.                         radius 0.5
  28.                         height 2.0
  29.                     }
  30.                 },
  31.             # Branches
  32.                 Transform {
  33.                     translation 0.0 3.0 0.0
  34.                     children Shape {
  35.                         appearance USE White
  36.                         geometry Cone {
  37.                             bottomRadius 2.0
  38.                             height 4.0
  39.                         }
  40.                     }
  41.                 }
  42.             ]
  43.         }
  44.     ]
  45. }
  46.